_PATH_=../../toolchain/cross/
CC=@$(_PATH_)/bin/i586-pc-fluidium-gcc
AR=@$(_PATH_)/bin/i586-pc-fluidium-ar
LIBS=
PARAMS=-O -Wall -Wextra -Werror 
INCLUDES=-I./inc
OBJ=./bin
SRC=./src
OBJECTS=$(OBJ)/libiobot.a \
$(OBJ)/iobot_backspace.o \
$(OBJ)/iobot_scroll.o \
$(OBJ)/iobot_clear_input.o \
$(OBJ)/iobot_clear_output.o \
$(OBJ)/iobot_get_char.o \
$(OBJ)/iobot_process_scanocde.o \
$(OBJ)/iobot_put_char.o \
$(OBJ)/iobot_put_hex.o \
$(OBJ)/iobot_put_input_string.o \
$(OBJ)/iobot_put_number.o \
$(OBJ)/iobot_put_string.o \
$(OBJ)/iobot_set_cursor.o \
$(OBJ)/iobot_update_input.o \
$(OBJ)/iobot_update_output.o \
$(OBJ)/iobot_create.o \
$(OBJ)/iobot_destroy.o

PREFIX=$(CC) $(PARAMS) $(INCLUDES) -c -o

all :
	$(PREFIX) $(OBJ)/iobot_backspace.o  $(SRC)/iobot_backspace.c $(LIBS)
	$(PREFIX) $(OBJ)/iobot_scroll.o  $(SRC)/iobot_scroll.c $(LIBS)
	$(PREFIX) $(OBJ)/iobot_clear_input.o  $(SRC)/iobot_clear_input.c $(LIBS)
	$(PREFIX) $(OBJ)/iobot_clear_output.o  $(SRC)/iobot_clear_output.c $(LIBS)
	$(PREFIX) $(OBJ)/iobot_get_char.o  $(SRC)/iobot_get_char.c $(LIBS)
	$(PREFIX) $(OBJ)/iobot_process_scanocde.o  $(SRC)/iobot_process_scancode.c $(LIBS)
	$(PREFIX) $(OBJ)/iobot_put_char.o  $(SRC)/iobot_put_char.c $(LIBS)
	$(PREFIX) $(OBJ)/iobot_put_hex.o  $(SRC)/iobot_put_hex.c $(LIBS)
	$(PREFIX) $(OBJ)/iobot_put_input_string.o  $(SRC)/iobot_put_input_string.c $(LIBS)
	$(PREFIX) $(OBJ)/iobot_put_number.o  $(SRC)/iobot_put_number.c $(LIBS)
	$(PREFIX) $(OBJ)/iobot_put_string.o  $(SRC)/iobot_put_string.c $(LIBS)
	$(PREFIX) $(OBJ)/iobot_set_cursor.o  $(SRC)/iobot_set_cursor.c $(LIBS)
	$(PREFIX) $(OBJ)/iobot_update_input.o  $(SRC)/iobot_update_input.c $(LIBS)
	$(PREFIX) $(OBJ)/iobot_update_output.o  $(SRC)/iobot_update_output.c $(LIBS)
	$(PREFIX) $(OBJ)/iobot_create.o  $(SRC)/iobot_create.c $(LIBS)
	$(PREFIX) $(OBJ)/iobot_destroy.o  $(SRC)/iobot_destroy.c $(LIBS)

	@$(AR) rcs $(OBJECTS) 
